package com.bosch.in.rtp1.ept.action.form;

import java.util.List;

import org.apache.struts.action.ActionForm;

import com.bosch.in.rtp1.ept.constant.CommonConstants;
import com.bosch.in.rtp1.ept.model.dto.SelectingInt;
import com.bosch.in.rtp1.ept.util.FormUtility;

public class HldDurByMonthForm extends ActionForm{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private List<SelectingInt> years;
	
	private int selectedYear;
	
	private List<SelectingInt> months;
	
	private int selectedMonth;
	
	public HldDurByMonthForm() {
		this.selectedYear = CommonConstants.CURRENT_YEAR;
	}
	
	public void setYears(List<SelectingInt> years) {
		this.years = years;
	}

	public List<SelectingInt> getYears() {
		if (this.years == null)
		{
			this.years = FormUtility.buildListYears();
		}
		return years;
	}

	public void setSelectedYear(int selectedYear) {
		this.selectedYear = selectedYear;
	}

	public int getSelectedYear() {
		return selectedYear;
	}

	public List<SelectingInt> getMonths() {
		if (this.months == null)
		{
			this.months = FormUtility.buildListMonths();
		}
		return months;
	}

	public void setMonths(List<SelectingInt> months) {
		this.months = months;
	}

	public int getSelectedMonth() {
		return selectedMonth;
	}

	public void setSelectedMonth(int selectedMonth) {
		this.selectedMonth = selectedMonth;
	}
	
}
